package com.example.idachuappone.person.entity;

import com.example.idachuappone.utils.Constant;
import java.io.Serializable;
import org.json.JSONObject;

public class MemberTypee implements Serializable {
    private String banner;
    private String degree;
    private String flash;
    private String img;
    private String img2;
    private String img3;
    private String name;
    private String present;
    private String price;

    public void parseJson(JSONObject json) {
        if (json != null) {
            if (json.has("degree")) {
                this.degree = json.optString("degree");
            }
            if (json.has("name")) {
                this.name = json.optString("name");
            }
            if (json.has("price")) {
                this.price = json.optString("price");
            }
            if (json.has(Constant.MEMBER_PRESENT)) {
                this.present = json.optString(Constant.MEMBER_PRESENT);
            }
            if (json.has("img")) {
                this.img = json.optString("img");
            }
            if (json.has("img2")) {
                this.img2 = json.optString("img2");
            }
            if (json.has("img3")) {
                this.img3 = json.optString("img3");
            }
            if (json.has("flash")) {
                this.flash = json.optString("flash");
            }
            if (json.has("banner")) {
                this.banner = json.optString("banner");
            }
        }
    }

    public String getDegree() {
        return this.degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPresent() {
        return this.present;
    }

    public void setPresent(String present) {
        this.present = present;
    }

    public String getImg() {
        return this.img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg2() {
        return this.img2;
    }

    public void setImg2(String img2) {
        this.img2 = img2;
    }

    public String getImg3() {
        return this.img3;
    }

    public void setImg3(String img3) {
        this.img3 = img3;
    }

    public String getFlash() {
        return this.flash;
    }

    public void setFlash(String flash) {
        this.flash = flash;
    }

    public String getBanner() {
        return this.banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }
}
